<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
  var url = location.href;
  var origin = location.origin;
  var param = {};
  var reg = /([^?&=]+)=([^?&=#]+)/g;
  url.replace(reg, function(str, key, value) {
    param[key] = value;
  });
  var x = param.openid?param.openid:'ssss'
  localStorage.setItem('WX_UID',x)
</script>
</body>
</html>
